import request from "~/utils/facth.js";

// 文件上传接口
export const fileUploadAPI = (data)=>{
    return request({
        url: '/resource/oss/upload',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data
    })
}

//头像上传
export const avatarUploadAPI = (data) => {
    return request({
        url: '/system/user/profile/avatar',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data
    })
}
